<?php 
require_once 'mycurl.php' ;

//接口地址
$url = 'http://api.k780.com';
//$param = 'app=weather.future&weaid=1&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json';
//post方式的参数
$paramArr = [
               'app'    => 'weather.future',
               'weaid'  => '1',
               'appkey' => '10003',
               'sign'   => 'b59bc3ef6191eb9f747dd4e83c99f2a4',
               'format' => 'json',
			];
//实例化
$mycurl = new MyCurl();

$mycurl->url  = $url;

$mycurl->data = $paramArr;

//get方式提交
$data = $mycurl->get();

//post方式提交
//$data = $mycurl->post();

//获取curl执行的详细信息
$info = $mycurl->info;
//var_dump($info);

echo $data;









 ?>

